var RoomMgr = {};
var roomList = {};
var roomNums = 0;
var Room = require('./model/room');

RoomMgr.getOrCreateRoomById = function(roomid){
    if(roomList[roomid] == null){
        roomList[roomid] = new Room(roomid);
    }

    return roomList[roomid];
}

module.exports = RoomMgr;